package com.yanqu.road.entity.log.foxcard;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_foxcard_random_next_guarantee", desc = "黑狐入侵回忆助力", autoSave = true, dataUpload = true, eventName = "red_blackmemo",uploadCk = true)
public class LogFoxCardRandomNextGuarantee extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "当前累抽轮次", dataAttribute = "red_blackaccid")
    private int lotteryRoundAmount;
    @FieldTypeAnnotation(desc = "下次保底轮次", dataAttribute = "red_blackguar")
    private int guaranteeNum;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogFoxCardRandomNextGuarantee(int activityId, long userId, int lotteryRoundAmount, int guaranteeNum) {
        this.activityId = activityId;
        this.userId = userId;
        this.lotteryRoundAmount = lotteryRoundAmount;
        this.guaranteeNum = guaranteeNum;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
